import { reactive } from "vue";

export default function useData() {
  const pageData = reactive({
    columnData: [
      {
        label: "序号",
        prop: "no",
        width: "80px",
        sortable: true
      },
      {
        label: "类型",
        prop: "type",
        width: "auto"
      },
      {
        label: "关键字",
        prop: "policystr",
        width: "auto"
      },
      {
        label: "时间",
        prop: "uptime",
        width: "auto"
      },
      {
        label: "操作",
        prop: "operation",
        width: "auto"
      }
    ]
  });
  const agrMap = new Map([
    ["0", "所有"],
    ["6", "TCP"],
    ["17", "UDP"],
    ["1", "ICMP"],
  ]);
  return {
    pageData,
    agrMap
  };
}
